<?php

return [
    'components' => [
        'db' => [
            'class' => 'yii\db\Connection',
            'dsn' => 'mysql:host=192.168.91.5;dbname=cms',
            'username' => 'root',
            'password' => 'Mega03212',
            'charset' => 'utf8',
        ],
        'mailer' => [
            'class' => 'yii\swiftmailer\Mailer',
            'viewPath' => '@common/mail',
            'transport' => [
                'class' => 'Swift_SmtpTransport',
                'host' => 'smtp.qq.com',
                'username' => '2462238234@qq.com',
                'password' => 'ggbkbeersnfidiac',
                'port' => '465',
                'encryption' => 'ssl',
            ],
            'messageConfig' => [
                'charset' => 'UTF-8',
                'from' => ['2462238234@qq.com' => 'SmartControl'],//此处的配置会和环境配置叠加，因为key不一样
            ],
        ],

        'redis' =>[
            'class' => 'yii\redis\Connection',
            'hostname' => '172.23.0.2',
            'port' => 6379,
            'password' => 'Mega03212',
            'database' => 0,
        ],
    ],
];
